<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tx_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tx_money" data-rule="required"  class="form-control" name="row[tx_money]" type="text" value="{$row.tx_money}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>



        <div class="col-xs-12 col-sm-8">
    

            <select   id="c-uid" class="form-control" name="row[uid]">
                {foreach $user as $v}

                <option  {if condition="$v->user_name == $row.uid"} selected {/if}  value="{$v->user_id}">{$v->user_name}</option>
                {/foreach}
        </select>



        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">提现状态:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div id="red" class="radio">
            {foreach name="txStatusList" item="vo"}
            <label for="row[tx_status]-{$key}"><input  id="row[tx_status]-{$key}" class="wqe" name="row[tx_status]" type="radio" value="{$key}" {in name="key" value="$row.tx_status"}checked{/in} />
                {if condition="$vo == 'Tx_status 0'"}
                    正在处理
                {elseif condition="$vo == 'Tx_status 1'"/}
                    已经处理
                {else /}
                    拒绝处理

                {/if}
            </label> 
            {/foreach}
            </div>
            <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
            <script>

              
                    if({$row.tx_status} == 2){
                        $(".wqe").attr('disabled',true);
                        $("#red").append('<div style="margin-top:0.5rem;color:red"> <b style="">*</b> 当前提现已做拒绝处理,请重新发起!</div>');
                    }
                    
              
            </script>
           
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tx_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tx_time" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[tx_time]" type="text" value="{$row.tx_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tx_reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tx_reason" class="form-control" name="row[tx_reason]" type="text" value="{$row.tx_reason}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tx_wallet')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tx_wallet" disabled class="form-control" name="row[tx_wallet]" type="text" value="{$row.tx_wallet}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<div style="width:70%;margin:5rem auto;" class="alert alert-success" role="alert">
    如需完成提现请修改提现状态,拒绝可选择输入拒绝原因.
</div>